package com.luohai.stock.mapper;

import com.luohai.stock.pojo.domain.*;
import com.luohai.stock.pojo.entity.StockRtInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
* @author acer
* @description 针对表【stock_rt_info(个股详情信息表)】的数据库操作Mapper
* @createDate 2024-09-15 21:17:12
* @Entity com.luohai.stock.pojo.entity.StockRtInfo
*/
public interface StockRtInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockRtInfo record);

    int insertSelective(StockRtInfo record);

    StockRtInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockRtInfo record);

    int updateByPrimaryKey(StockRtInfo record);

    List<StockUpdownDomain> getStockPage(@Param("lastdate") Date lastdate);

    List<StockUpdownDomain> getStock4Increase(@Param("lastDate") Date lastDate);

    List<Map> getStockeUpdown(@Param("lastDate") Date lastDate4Stock);

    List<Map> getStockUpdownCount(@Param("curTime") Date startTime4T, @Param("openTime") Date endTime4T,
                             @Param("flag") int flag);


    List<Stock4MinuteDomain> getTimeSharing(@Param("code") String code, @Param("startTime") Date startTime4T, @Param("endTime") Date endTime4T);

    List<Stock4EvrDayDomain> getDkline(@Param("code") String code, @Param("startTime") Date startTime4T, @Param("endTime") Date endTime4T);

    List<Date> getMaxDate(@Param("code") String code, @Param("startTime") Date startTime4T, @Param("endTime") Date endTime4T);

    List<Stock4EvrDayDomain> getDklineAndMaxDate(@Param("code") String code,@Param("closeDate") List<Date> closeDate);

    Integer addStockAll(@Param("stocklist") List<StockRtInfo> stocklist);


    InnerStockDomain getSecondDetail(@Param("code") String code,@Param("lastDate") Date lastDate4Stock);

    List<StockWaterDomain> getscreenSecond(@Param("code") String code, @Param("startTime") Date startTime4T, @Param("endTime") Date endTime4T);
}
